<?php
class UploadsController extends AppController {
    var $name = 'Upload';
     var $layout = 'view_layout';
   

    function index() {
        
    }
//    function index() {
//    }

    function imagen($id,$img) {
        $item = $this->Upload->findById($id);
        //$this->log($item);
        $algo=$img;
        $this->set('image', $item['Upload'][$algo]);
        $this->set('type', $item['Upload']['type']);
        $this->render();
        
    }   

    
    

    
    
    
}
?>
